package leetcode.code0274;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution274 implements IDebug {

	public abstract int hIndex(int[] citations);

	@Override
	public void debug1() {
		int r = this.hIndex(HelpDebug.str2array3("[3,0,6,1,5]"));
		HelpDebug.compare(3, r);
	}

	@Override
	public void debug2() {
		int r = this.hIndex(HelpDebug.str2array3("[1,3,1]"));
		HelpDebug.compare(1, r);
	}

	@Override
	public void debug3() {
		int r = this.hIndex(HelpDebug.str2array3("[11,15]"));
		HelpDebug.compare(2, r);
	}

	@Override
	public void debug4() {
		int r = this.hIndex(HelpDebug.str2array3("[11]"));
		HelpDebug.compare(1, r);
	}
	public void debug5() {
		int r = this.hIndex(HelpDebug.str2array3("[0,0,0]"));
		HelpDebug.compare(0, r);
	}
	public void debug6() {
		int r = this.hIndex(HelpDebug.str2array3("[0,0,4,4]"));
		HelpDebug.compare(2, r);
	}

}
